public interface JVarDeclaration extends JAnnotatable, JDocCommentable
| Modifier and Type | Method and Description |
|---|---|
JVarDeclaration |
add(String name)
Add another item to this declaration.
|
JVarDeclaration |
add(String name,
JExpr init)
Add another item to this declaration.
|
String |
name()
Get the variable name.
|
JType |
type()
Get the variable type.
|
annotate, annotate, annotatedeprecated, docCommentblockComment, lineCommentJType type()
String name()
JVarDeclaration add(String name, JExpr init)
name - the variable nameinit - the variable initializerJVarDeclaration add(String name)
name - the variable nameCopyright © 2021 JBoss by Red Hat. All rights reserved.